package svc

import (
	"mail/service/outlay/api/internal/config"
	"mail/service/outlay/rpc/outlayclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config    config.Config
	OutlayRpc outlayclient.Outlay
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		OutlayRpc: outlayclient.NewOutlay(zrpc.MustNewClient(c.OutlayRpc)),
	}
}
